package com.jy.api.payRes;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

import javax.persistence.*;
import java.util.Date;

@Table(name = "order_item_201912")
@Slf4j
@Entity
@Data
@NoArgsConstructor
public class OrderItem201912 {
    @Id
    @Column(length = 50)
    private String id;
    private String productName;
    private String productId;
    private String productImageURL;
    private String productTypeId;
    private double salesPrice = 0;

    private double dealPrice = 0;

    private double costPrice = 0;
    private int quantity = 0;
    @Column(insertable = false, updatable = false)
    @Temporal(TemporalType.TIMESTAMP)
    private Date addTime;
    @Column(insertable = false, updatable = false)
    @Temporal(TemporalType.TIMESTAMP)
    private Date updateTime;

    private boolean enabled = true;

    /**
     * 固定提成金额
     */
    private double commission = 0;
    /**
     * 是否支持厨房打印
     */
    private boolean kitchenPrintEnabled = false;

    /**
     * 是否支持热敏打印
     */
    private boolean isDirectTherma = false;

    private boolean labelEnabled=false;


    private int ipId;

    private String ipName="";

    private int port=0;

    private String ipAddress="";
}
